package net.ericaro.neojavagen.classes;

/**
 * <b>VariableDeclaratorId</b> ::= <{@link net .ericaro .neojavagen .types .Identifier Identifier}> <{@link net .ericaro .neojavagen .classes .Dims Dims}>?
 * 
 * @author eric@ericaro.net
 */
public class VariableDeclaratorId extends net.ericaro.neojavagen.JavaPartComposition {
	private net.ericaro.neojavagen.classes.Dims dims;

	private net.ericaro.neojavagen.types.Identifier identifier;

	public VariableDeclaratorId(net.ericaro.neojavagen.types.Identifier identifier) {
		this.identifier = identifier;
		this.dims = null;
	}

	public VariableDeclaratorId(net.ericaro.neojavagen.types.Identifier identifier, net.ericaro.neojavagen.classes.Dims dims) {
		super();
		this.identifier = identifier;
		this.dims = dims;
	}

	public net.ericaro.neojavagen.classes.Dims getDims() {
		return dims;
	}

	public net.ericaro.neojavagen.types.Identifier getIdentifier() {
		return identifier;
	}

	public void setDims(net.ericaro.neojavagen.classes.Dims dims) {
		this.dims = dims;
	}

	public void setIdentifier(net.ericaro.neojavagen.types.Identifier identifier) {
		this.identifier = identifier;
	}

	@Override
	public java.lang.String toString() {
		return print(identifier, dims);
	}
}
